package com.niguang.work.api.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableLogic;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenliu
 * @since 2018-07-23
 */
public class AdminLaborUser extends Model<AdminLaborUser> {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 用户名称
     */
    private String userName;
    /**
     * 手机号码
     */
    private String userPhone;
    /**
     * 用户密码
     */
    private String userPwd;
    /**
     * 劳务公司
     */
    private Long laborCompanyId;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableLogic
    private Boolean delFlag;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public Long getLaborCompanyId() {
        return laborCompanyId;
    }

    public void setLaborCompanyId(Long laborCompanyId) {
        this.laborCompanyId = laborCompanyId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Boolean getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Boolean delFlag) {
        this.delFlag = delFlag;
    }

    public static final String ID = "id";

    public static final String USER_NAME = "user_name";

    public static final String USER_PHONE = "user_phone";

    public static final String USER_PWD = "user_pwd";

    public static final String LABOR_COMPANY_ID = "labor_company_id";

    public static final String CREATE_TIME = "create_time";

    public static final String DEL_FLAG = "del_flag";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AdminLaborUser{" +
        "id=" + id +
        ", userName=" + userName +
        ", userPhone=" + userPhone +
        ", userPwd=" + userPwd +
        ", laborCompanyId=" + laborCompanyId +
        ", createTime=" + createTime +
        ", delFlag=" + delFlag +
        "}";
    }
}
